//
//  mapAnnotation.m
//  Paparazzi
//
//  Created by Gongmyung on 2/18/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "MapAnnotation.h"


@implementation MapAnnotation

@synthesize coordinate;
@synthesize thisEvent;

- (NSString *)subtitle{
	return [thisEvent eventdescription];
}

- (NSString *)title{
	return [thisEvent title];
}

-(id)initWithEvent:(Event*)eventData {
	coordinate.latitude = [eventData.latitude doubleValue];
    coordinate.longitude = [eventData.longitude doubleValue];
	thisEvent = eventData;
	[thisEvent retain];
	return [super init];
}

-(void)dealloc {
	[thisEvent release];
	[super dealloc];
}

@end